package com.guxingke.gsb.model;

import java.util.Date;
import java.util.Map;

/**
 * Created by 孤星可 on 2015/11/16.
 *
 * @author guxingke
 * @since 2015/11/23
 */
public class Page implements IParseable {
    private String title;
    private String author;
    private String content;
    private String slug;
    private String cover;
    private String layout;
    private Date date;
    private Date updated;
    private Map<String, String> ext;

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getSlug() {
        return slug;
    }

    public void setSlug(String slug) {
        this.slug = slug;
    }

    public String getCover() {
        return cover;
    }

    public void setCover(String cover) {
        this.cover = cover;
    }

    public String getLayout() {
        return layout;
    }

    public void setLayout(String layout) {
        this.layout = layout;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public Date getUpdated() {
        return updated;
    }

    public void setUpdated(Date updated) {
        this.updated = updated;
    }

    public Map<String, String> getExt() {
        return ext;
    }

    public void setExt(Map<String, String> ext) {
        this.ext = ext;
    }

    @Override
    public String toString() {
        return "Post{" +
                "title='" + title + '\'' +
                ", author='" + author + '\'' +
                ", content='" + content + '\'' +
                ", slug='" + slug + '\'' +
                ", cover='" + cover + '\'' +
                ", layout='" + layout + '\'' +
                ", date=" + date +
                ", updated=" + updated +
                ", ext=" + ext +
                '}';
    }
}
